<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <div class="breadcrumb_wrap">
        <ul class="breadcrumb">
            <li>您的位置：</li>
            <li> <a href="/xdd/common/goods_list">产品管理</a> <span class="divider">></span> </li>
            <li> <a href="/xdd/common/goods_price">单价维护</a> <span class="divider">></span> </li>
            <li class="active">列表</li>
        </ul>
    </div>
    <ul id="myTab" class="nav nav-tabs pro_nav_tabs">
        <li> <a href="/xdd/common/goods_list" >产品信息</a> </li>
        <li  class="active"> <a href="product_type_list.html">单价维护</a> </li>
    </ul>
    <div class="table-responsive con_list">
       <!-- <table class="table table-striped">
            <thead>
            <tr>
                <th>编号</th>
                <th>类别名</th>
                <th>单价</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <spam ng-repeat="gtype in typeList">
                <tr ng-repeat="type in gtype.typeList">
                    <td>{{$index+1}}</td>
                    <td>{{type.typeName}}</td>
                    <td>{{type.price}}元/克</td>
                    <td ng-if="type.ifUse">启用</td>
                    <td ng-if="!type.ifUse">禁用</td>
                    <td class="ops">
                        <button type="button" class="btn btn-primary del" ng-click="updatePrice(type)" >一键更新</button>
                    </td>
                </tr>

            </spam>
            </tbody>
        </table>-->
        <table class="table table-striped">
            <tbody ng-repeat="gtype in typeList" style="border:none">
                <tr ng-click="showTypeClick(gtype.id)">
                    <td style="text-align: left;">{{gtype.title}} <i class="glyphicon glyphicon-triangle-bottom"></i></td>
                </tr>
                <tr ng-show="showId==gtype.id">
                    <td colspan=3 class="sub_type second">
                        <table class="table table-striped">
                            <tbody style="border:none">
                                <tr ng-repeat="type in gtype.typeList">
                                    <td>{{type.typeName}}</td>
                                    <td>{{type.price}}元/克</td>
                                    <td class="ops">
                                        <button type="button" class="btn btn-primary del" ng-click="updatePrice(type)" >一键更新</button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>